def enumerate(sequence, start=0):
    n = start
    for elem in sequence:
        yield n, elem
        n += 1

print(enumerate(['Spring', 'Summer', 'Fall', 'Winter']))

# seasons = ['Spring', 'Summer', 'Fall', 'Winter']
# #默认从0开始
# print(list(enumerate(seasons)))
#
# seasons = ['Spring', 'Summer', 'Fall', 'Winter']
# print(list(enumerate(seasons,start=logging.conf)))